CandleCheckThis indicator is intended to evaluate the quality of the bullish candles (close > open).
It will calculate the average size of the bullish candles from the last 200 periods. I'm assuming that a bullish candle with a superior wick or shadow equal or less than 25% of the total size of the bar is a good disruption candle. You can adjust at your own taste.
Candles with a size above the average and a superior wick or shadow equal or less than 25% of the total size of the bar will be painted lime. These are "good" candles.
Candles with a superior wick or shadow equal or less than 25% of the total size of the bar but with a size below the average will be painted green. These are "OK" candles.
Candles with a size above the average but a superior wick or shadow above than 25% of the total size of the bar will be painted fuchsia. These are "bad" candles.
Candles with a size below the average and a superior wick or shadow above than 25% of the total size of the bar will be left alone. These are "worse" candles.
"bad" and "worse" candles will be marked with a lime cross at the exact spot where price should reach to turn these candles to "OK" or "good". That value will be indicated at the indicator header.
"OK" or "good" candles should have a volume above the average.
[i]price
Dav-o meterPseudo code
Example
General info and acknowledgements
Author: maqpie
Date of publishing: 20th of july 2017
This script is based upon Davinci's dav-o meter and his original script, which searches for W's and M's in price, OBV, RSI and/or Willy.
Although the original script is elegant, a W or M has to occur within 5 bars.
However, often what you will see is that a W or M forms over more than 5 bars.
This script tries to remove that limit.
It took me several different approaches to find a good solution. For the most part because of the lack of any real debugging tool in Pine script.
Let me know what you think, because I feel like I need tone down the number of options so it is easier to use.
If you have any questions, or things you would like to see different please contact me at TRI.
Have fun playing and goofing around with it!
How it works
Now, trading is more of an art form than a science and this indicator is no exception.
When talking about M's and W's, it begs the question: what exactly counts as a W or M?
My personal experience is that for a W to count as such, it has to adhere to the following rules:
1. A 'W' has 5 points, A, B, C, D and E E
2. Point A can be any point C /
3. Point B should be lower than A A / \ /
4. Point C should be higher than B \ / D
5. Point D should be lower than C, but higher than B B
6. Point E should be higher than C
1. A 'M' has 5 points, A, B, C, D and E B
2. Point A can be any point / \ D
3. Point B should be higher than A A \ / \
4. Point C should be lower than B C \
5. Point D should be higher than C, but lower than B E
6. Point E should be lower than C
Script input parameters
You can use the following indicators to search for W's or M's:
- price (close)
- OBV
- RSI
- Willy
For each of these indicators you set the following options:
- Use: whether you want to use it
- The maximum width: over how many bars a W / M is allowed to form
- The maximum offset: how many bars back a W / M is allowed to form
- Strict: when not set, rule 5 (see 'How it works') changes: point D no longer has to be above B (for W), and no longer has to be below B (for M)
- Length: length of the indicator, for example a 14 bar RSI
Other options:
- Potential dav-o: show potentials which are like regulars dav-o's, except that rule 6 (see 'How it works') no longer applies.
- Period: you can limit the period for backtesting. Useful to identify under what market conditions the script works best.
Final note: using the potential dav-o in combination with unsetting the 'Strict' rule will make this script all but useless.
Price and EMA Difference Customizable [Requested script]
Easy options, you can toggle the lines and other things. Even turn of the histogram.
BullTrading PA-MACDBullTrading PA-MACD contains different algorithms based on price action to calculate and display the popular MACD indicator. It will display more relevant crosses without sacrificing much sensibility (use fractal entries).
WhenWasThePriceAction
Bars of largest range (volatility)
* see moments of strongest price action immediately
* colored & upDown by candle color
* amplifier: you see only the bull runs, and subsequent dumps
Very nice on the 5 years scale of BITSTAMP:BTCUSD - nothing comparable to 2013 has happened yet.
Internals:
squared_range = pow(high-low, 2)
That is essentially it already. The rest are details:
* gauge with (in case of Bitcoin exponentially rising) price
* show in red for negative candles
* take even higher polynomial (than 2) to show only the very largest values
* allow some user input (but there is not much more that can be chosen here.)
Sorry for such a simple formula - but sometimes the easiest things are powerful.
Please give feedback. www.tradingview.com and/or in the cryptocurrency chat. Thanks.
Multi-Day VWAP V2Updated from V1.
Chart the multi-day Volume Weighted Average Price ( VWAP ). Normally, the VWAP is tracked for the current day, from the first bar of the day (regular or extended session). The VWAP shows the current value of:
-> sum(hlc3 * volume , barsForDay) / sum( volume , barsForDay),
-> where 'barsForDay' is the total number bars that have elapsed during the day for the chart interval.
The multi-day version tracks the VWAP for N days back, by averaging the previous N - 1 day bars VWAP and the current VWAP for the current bar (chart interval).
This is very different that simply using a volume weighted moving average , since the closing VWAP values are used for the historical day bars. The results are interesting for intraday trades... especially for values of 1, 2, 3, 4, and 5 days.
Version 2 includes the closing VWAP for the previous day. There are enough instances where the price chooses to bounce from the previous day's closing VWAP value that it is worth discussing. Usually this value is at or near the daily pivot, but sometimes not. Circled in the chart are some areas of recent SPY bounces on the previous day's closing VWAP.
It seems that when the 5-Day VWAP and normal VWAP have "enough" percentage separation, that there can be good intraday swing opportunities using bounces off VWAP indicators. This is similar to waiting for Hourly/Daily/Weekly/Monthly/etc pivots to have "enough" separation to allow for swing setups. When pivots are "closely" spaced, odds are the price is range bound for the time period (daily range in the case of day pivots, etc).
Previous closing VWAPs can be plotted for all 5 of the original. As with my other scripts, I welcome all comments to spark new ideas that we can all benefit from.
Enjoy.
Action Section, Volatility Choppiness Indicator (by ChartArt)Here is a solution to find entry points to trade. This indicator highlights price sections with low choppiness, where both the ADX (Average Directional Index) indicator shows strong movement (up or down!) in the price and a customized Money Flow indicator (which uses only the change of the volume not the change of the price, hence a Volume Flow indicator), also shows volatility is present. Using higher filter values than the default setting of "30" reduces the noise, but also shows less 'action sections'. Vice versa using values lower than "30" increases the amount and duration of action sections which are shown.
The "action section" indicator does not show the direction if the price is going up or down. It shows if there is enough action worthy the time to trade (lower odds of a neutral sideways trend). Therefore in addition a Heikin-Ashi based price change indicator can optionally be plotted, which shows the actual direction of the price.
Action Section, High Volume Volatility & Low Price Choppiness Indicator
This indicator works only on charts which have volume data.
Gain Over LossSelf adjusting gain over loss indicator. Shows price movement and momentum. If you want to reach to the parameters you can use the old version.
Bitcoin SpreadIt selects the min/max price for btc/usd from a set of exchanges and shows them on the chart. It is possible to add or remove exchanges by editing the source code
Percent change bar chart v 2.0 This histogram displays price or % change from previous bar.
Can be applied to any time frame.
15/12/2016 Update:
Number of digits after the floating point for study values on the axis now two.
Aggregated BTC VOLUMEAggregated Volume from all major exchanges. Price must touch or drop below pivot but close above it. Volume must break SMA.
Percent change bar chart This histogram displays price or % change from previous bar.
Can be applied to any time frame.
Price Action Awesome IndicatorThis indicator is everything you need to do Price Action Trading.
It provides signals about:
Inside Bars
Pin Bars
Fakey Pin Bars (background color red or green for bearish or bullish fakeys)
Ro True PriceGiven enough time, market tends to oscillate around the true price. The true price slope gives information about the long term trend. Ro True Price lights red when the trend is down, green for up. If the color is blue market is in a decision period. For intraday lower the precission value to make signal sensitive to short term action.
Seismic Market Spike Detector v1.0 Seismic Market Spike Detector v1.0
This indicator helps identify spikes in market activity , typified by bars with extreme open / close or high / low prices.
This indicator plots 2 lines. The Blue line simply depicts extreme price movements with in that bar regardless of the initial opening price of the closing price of the bar. This allows you to get an insight into the current volatility of the price at that time in the market. Quite often big price swings with in bars are missed as people pend to tunnel vision on the open or close price - or other indicators derived from open / close.
The Red line is similar to the blue bar as it depicts extreme price movements with in the bar , but it will show the direction the market moved in by the close of the bar - and relatively how much the market moved. This is helpful for spotting breakout price action or short term spikes. Quite often after a breakout the market will restore itself to an equilibrium in the opposite direction. Sometimes this happens with an opposing aggressive spike , some times it makes a steady return to a known price level. Either way its a great time to place entry orders if you are looking to turn a fast profit or alternatively a good warning of forth coming price volatility.
Here are some tips for analysing the red and blue lines :
1)If the red line is pointing upwards , this indicates a sharp rise in the price.
2)If the red line is pointing downwards , this indicates a sharp fall in the price.
3)If the red line is flat but the blue line is spiked in either direction - this indicates the price was volatile with in the bar , but the price closed relatively near to the surrounding price bars. Perhaps a limit / stop triggered by this kind of activity - this is an easy way to determine why and re-enter.
4)If the red and the blue lines are flat - the price is steadily moving with a trend or trading sideways in a confined range.
Chauvenet RadiusThe Chauvenet criterion is a well-known criterion of selection and rejection of the data used by the Physics. It establishes that in an experiment is well to discard the data whose distance from the average is greater than a certain number of the delta.
In the stock market if prices move away from the average with a volatility too high are suspect. This principle is embodied in the Chauvenet floor with the definition of two asymptotes and two data areas rejection.
The Chauvenet Radius is the quadratic sum of the delta (distance from average) and sigmoid (volatility) and is therefore an obvious market stability index. In fact the moments when price strongly moves away from the average with high volatility coincide with the moments of high instability of the market.
It can be considered an evolution of John Bollinger method introduced during the '80.
Source: www.performancetrading.it
Price/OBV divergenceShows agreement or disagreement between the direction of the the price and the on-balance volume. When they disagree, the price is supposed to follow the OBV (or so they say.)
Price Regression AgreggatorPrice Estimator with aggregated linear regresion
---------------------------------------------------------------------------
How it works:
It uses 6 linear regression from time past to get an estimated point in future time, and using transparency, those areas that are move "visited" by those 6 different regressions and maybe more probable to be visited by the price (in fact if you zoom out you will see that price normally is around the lighter zones) have more aggregated painted colors, the transparency is lower and well, the lighter area should be more probable to be visited by the price should we put any faith on linear regression estimations and even more when many of them coincide in several points where the color is more aggregated.
If the "I" (the previous regressions increment) is too low, then we will have huge spikes as the only info gathered from the oldest linear regresssion will be within the very same trend we are now, resulting in "predictions" of huge spikes in the trend direction. (all regressions estimating on a line pointing to infinite)
If the "I" is high enough (not very or TV won't be able to display it) then you will get somewhat a "vectorial" resultant force of many linear regressions giving a more "real prediction" as it comes from tendencies from higher timeframes. E.g. 12 hours could be going down, 4h could be going sideways, 30m could be going up.
contact tradingview -> hecate . The idea and implementation is mine.
Note: transparency + 10 * tranparencygradient cannot be > 100 or nothing will be displayed
Note2: if the Future increment (how many lines are displayed to the right of the actual price ) are excessive, it will start to do weird things.
Note3: two times the standard deviation statistically correponds to a probability of 95%. We are calculating Top and Bot with that amount above and below. So anything inside those limits is more probable and if we are out of those limits it should fall back soon. Increase the number of times the std deviation as desired. There are calculators in the web to translate number of times std dev to their correspondent probability.
Note4: As we use backwards in time linear regressions for our "predictions" we lose responsiveness. Those old linear regressions are weighted with less value than more recent ones.
Note5: In the code i have included many color combinations (some horrible :-) )
Note6: This was an experiment while i was quite bored although ended enjoying playing with it.
Have fun! :-)
I leave it here because i am getting dizzy.
YK Fuller BarsThe script highlights "Fuller's pins" and generates alerts when these bars are appearing